ABC088 D - Grid Repainting